package net.bwie.realtime.gd.utils2;

public class  PhoenixWithUtil {

    public static String appendWithSql(String table) {


        return "WITH (\n" +
                "                  'connector.type' = 'phoenix',\n" +
                "                  'connector.url' = 'jdbc:phoenix:node00:2181', \n" +
                "                  'connector.table' = '" + table + "', \n" +
                "                  'connector.driver' = 'org.apache.phoenix.jdbc.PhoenixDriver', \n" +
                "                  'connector.username' = '',  'connector.password' = '',\n" +
                "                  'phoenix.schema.isnamespacemappingenabled' = 'true', \n" +
                "                  'phoenix.schema.mapsystemtablestonamespace' = 'true',\n" +
                "                  'connector.lookup.cache.max-rows' = '20',\n" +
                "                  'connector.lookup.cache.ttl' = '5',\n" +
                "                  'connector.write.flush.max-rows' = '1' )";
    }
}
